package Model2;

import java.io.*;
import java.util.*;

/**
 * 
 */
// 酒店房间类
class HotelRoom {
    private int roomId;
    private String roomName;
    private double basePrice;

    public HotelRoom(int roomId, String roomName, double basePrice) {
        this.roomId = roomId;
        this.roomName = roomName;
        this.basePrice = basePrice;
    }

    public double calculateFinalPrice(User user, PricingStrategy pricingStrategy) {
        return pricingStrategy.calculatePrice(this.basePrice);
    }
}